<%@ Page Language="C#" MasterPageFile="~/MasterPage/AdminMasterPage.master" AutoEventWireup="true" CodeFile="StoreManage.aspx.cs" Inherits="EmployeePage_StoreManage" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
        <asp:View ID="View1" runat="server">
            <table style="width: 576px; height: 313px">
                <tr>
                    <td colspan="2" style="height: 24px; width: 200px;">
                        <asp:LinkButton ID="LinkButton2" runat="server" OnClick="LinkButton2_Click">Addnew</asp:LinkButton></td>
                    <td align="right" style="width: 149px; height: 24px">
                        &nbsp;<asp:DropDownList ID="dlCity" runat="server" AutoPostBack="True" OnSelectedIndexChanged="dlCity_SelectedIndexChanged">
                            <asp:ListItem>Hanoi</asp:ListItem>
                            <asp:ListItem>Ho Chi Minh City</asp:ListItem>
                        </asp:DropDownList></td>
                </tr>
                <tr>
                    <td align="center" colspan="3" rowspan="2" valign="top">
                        <asp:GridView ID="gvStore" runat="server" AutoGenerateColumns="False" CellPadding="4"
                            ForeColor="#333333" GridLines="None" Height="250px"
                            Width="889px" OnRowCommand="gvStore_RowCommand">
                            <RowStyle BackColor="#EFF3FB" />
                            <Columns>
                                <asp:BoundField DataField="StoreID" HeaderText="STORE ID" />
                                <asp:BoundField DataField="StoreName" HeaderText="Store Name" />
                                <asp:BoundField DataField="StoreAddress" HeaderText="Adress" />
                                <asp:BoundField DataField="StorePhone" HeaderText="Store Phone" />
                                <asp:TemplateField HeaderText="Detail" ShowHeader="False">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%# Eval("CityID") %>'
                                            CommandName="Detail">Detail</asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <EditRowStyle BackColor="#2461BF" />
                            <AlternatingRowStyle BackColor="White" />
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                </tr>
            </table>
        </asp:View>
        <asp:View ID="Detail" runat="server" EnableTheming="False">
            <center>
                <table style="width: 526px; height: 212px">
                    <tr>
                        <td align="center" colspan="2" style="height: 21px">
                            Detail Of Store</td>
                    </tr>
                    <tr>
                        <td align="left" style="width: 124px; height: 26px">
                            Store ID</td>
                        <td align="left" style="width: 305px; height: 26px">
                            <asp:TextBox ID="txtID" runat="server" ReadOnly="True" Width="255px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td align="left" rowspan="4" style="width: 124px; height: 27px;">
                            Store Name</td>
                        <td align="left" rowspan="4" style="width: 305px; height: 27px;">
                            <asp:TextBox ID="txtName" runat="server" Width="254px"></asp:TextBox>&nbsp;</td>
                    </tr>
                    <tr>
                    </tr>
                    <tr>
                    </tr>
                    <tr>
                    </tr>
                    <tr>
                        <td align="left" rowspan="2" style="width: 124px; height: 41px;">
                            Address</td>
                        <td align="left" rowspan="2" style="width: 305px; height: 41px;">
                            <asp:TextBox ID="txtAddress" runat="server" Width="252px" TextMode="MultiLine"></asp:TextBox></td>
                    </tr>
                    <tr>
                    </tr>
                    <tr>
                        <td align="left" rowspan="3" style="width: 124px">
                            Phone</td>
                        <td align="left" rowspan="3" style="width: 305px">
                            <asp:TextBox ID="txtPhone" runat="server" Width="254px"></asp:TextBox></td>
                    </tr>
                    <tr>
                    </tr>
                    <tr>
                    </tr>
                    <tr>
                        <td align="left" rowspan="1" style="width: 124px; height: 21px">
                            City</td>
                        <td align="left" rowspan="1" style="width: 305px; height: 21px">
                            <asp:DropDownList ID="dlCity2" runat="server" AutoPostBack="True" OnSelectedIndexChanged="dlCity_SelectedIndexChanged">
                                <asp:ListItem>Hanoi</asp:ListItem>
                                <asp:ListItem>Ho Chi Minh City</asp:ListItem>
                            </asp:DropDownList></td>
                    </tr>
                    <tr>
                        <td align="left" style="width: 124px; height: 17px">
                        </td>
                        <td align="left" style="width: 305px; height: 17px">
                            <asp:Button ID="btAdd" runat="server" Text="Add" Width="77px" OnClick="btAdd_Click" />
                            &nbsp;<asp:Button ID="btReset" runat="server" Text="Reset" OnClick="btReset_Click" />
                            &nbsp;&nbsp;
                            <asp:Button ID="btDelete" runat="server" Text="Delete" Visible="False" OnClick="btDelete_Click" />
                            &nbsp;&nbsp;
                            <asp:Button ID="btBack" runat="server" CausesValidation="False"
                                Text="Back" OnClick="btBack_Click" /><br />
                            <asp:Label ID="lbMesss" runat="server" ForeColor="#00C000"></asp:Label>
                            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
                        </td>
                    </tr>
                </table>
            </center>
        </asp:View>
    </asp:MultiView>
</asp:Content>

